package com.etlmaster.executor.steps.file;

import com.etlmaster.executor.StepMeta;
import com.etlmaster.executor.utils.DpVfsUtils;
/**
 * 
 * @author MeiKefu
 * @date 2015-2-16
 */
public abstract class FileStepMeta extends StepMeta {

	public FileStepMeta(String id, String name,String step_code, String session_id, String paramStr) {
		super(id, name,step_code, session_id, paramStr);
	}
	
	protected String vfsServer;//vfs前缀
	
	protected String relativePath;//vfs相对路径

	public String getVfsServer() {
		return vfsServer;
	}

	public void setVfsServer(String vfsServer) {
		this.vfsServer = vfsServer;
	}

	public String getRelativePath() {
		return variableSubstitution(relativePath);
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}
	
	public String afterEscapingVfsServer(){
		return DpVfsUtils.getInstance().mappEscapePath(variableSubstitution(vfsServer));
	}
	
	public String getFileURI(){
		return afterEscapingVfsServer()+getRelativePath();
	}

}
